Method and apparatus for filtering object by using pressure

ABSTRACT

Embodiments of the present invention provide a method for filtering an object. The method includes: displaying an object management interface; detecting a location that is on the object management interface and that is touched by a user; determining, according to the touched location and a pressure value applied to the touched location, when the pressure value is greater than a preset threshold, a first type required by the user; and obtaining, through filtering in the object management interface, and presenting all objects of the first type. By using this method, the user can effectively obtain, through filtering in the object management interface, the presented objects of the first type, purposely locate, among disorderly messages or files, a type in which the user is interested, and filter out information of other types.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a continuation of International Application No.PCT/CN2015/098228, filed on Dec. 22, 2015, the disclosure of which ishereby incorporated by reference in its entirety.

TECHNICAL FIELD

The present invention relates to the terminal field, and specifically,to a method and an apparatus for filtering an object by using apressure.

BACKGROUND

For an information exchange application, such as QQ, Post ba, WeChat,Weibo, or a forum, that is used in an intelligent terminal by a user,various images, audio, videos, text messages, links, network redenvelopes, and the like always mix in a chat interface. There areusually hundreds of such messages, even thousands of messages in alively group or community.

When there are too many messages, a user needs to spend a large amountof time identifying and selecting information in which the user isinterested. However, such information is usually not ponderous text. Theuser pays more attention to which interesting videos are sent, whichfunny links are shared, which pleasant music there is, which beautifulimages there are, how many red envelopes are not grabbed by the user,and the like in a chat group. Such content is more attractive than piledtext messages.

Currently, the user can view these messages only by performing search bymeans of frequent page flips. If there are too many unrelated messagesamong these messages, an operation of the user becomes very complex. Dueto all these, the user cannot effectively obtain, through filtering,content in which the user is interested, and cannot enjoy greatexperience.

SUMMARY

In view of this, embodiments of the present invention provide a methodand an apparatus for filtering an object. The object mentioned in thisapplication document includes but is not limited to the following types:an image type, a text type, a document type, a shared link type, anetwork red envelope (or a red envelope for short in the embodiments ofthe present invention) type, a video type, a music type, a contact type,a message type, an email type, an application note type, a search recordtype, a shopping record type, a post type in a forum, or an alarm prompttype, a call record type, or the like. These types may also beunderstood as an attribute that may be shared by multiple objects. Auser may perform object filtering according to the types above. By usingthis method, the user rapidly determines, by means of a force touch(force touch), an object that is of a specific type and that the userintends to view, so that the user personalizes filtering in a largeamount of complex and mixed information, and an object in which the useris interested is presented.

According to a first aspect, an embodiment of the present inventionprovides a method for filtering an object, where the method includes:displaying an object management interface, where the object managementinterface contains objects of at least two types; detecting a locationthat is on the object management interface and that is touched by auser, and a pressure value applied to the touched location; determining,when the pressure value is greater than a preset threshold, and anobject can be identified according to the touched location, a type ofthe object as a first type, where the first type is one of the at leasttwo types; and obtaining, through filtering in the object managementinterface, and presenting all objects of the first type.

According to a second aspect, an embodiment of the present inventionprovides a method for filtering an object, where the method includes:displaying an object management interface, where the object managementinterface contains objects of at least two types; detecting a locationthat is on the object management interface and that is touched by auser, and a pressure value applied to the touched location; when it isdetected that the pressure value is greater than a preset threshold, andthe touched location corresponds to a blank area, determining, accordingto a preset rule, a threshold interval in which the pressure value is,and determining a first type according to the threshold interval, wherein the preset rule, a different threshold interval corresponds to adifferent type, the first type is one of the at least two types, and theblank area does not contain any object; and obtaining, through filteringin the object management interface, and presenting all objects of thefirst type.

According to the first aspect or the second aspect, in a possibledesign, the object is a message in a dialog box or a file in a folder.

According to the first aspect or the second aspect, in a possibledesign, the first type is an image type, an audio type, a video type, ora document type; and correspondingly, the object of the first type is animage, audio, a video, or a document.

According to the first aspect or the second aspect, in a possibledesign, the first type is network red envelope type or a shared linktype, and the object of the first type is a network red envelope messageor a shared link message.

According to the first aspect or the second aspect, in a possibledesign, the first type is a contact, and the object of the first type isa message published by the contact.

According to the first aspect or the second aspect, in a possibledesign, the obtaining, through filtering in the object managementinterface, and presenting all objects of the first type is specifically:obtaining, through filtering, all the objects of the first type from allthe objects contained in the object management interface, and arrangingand presenting all the objects of the first type in a forwardchronological order.

According to the first aspect or the second aspect, in a possibledesign, the obtaining, through filtering in the object managementinterface, and presenting all objects of the first type is specifically:obtaining, through filtering, all the objects of the first type from allthe objects contained in the object management interface, and arrangingand presenting all the objects of the first type in a reversechronological order.

According to the first aspect or the second aspect, in a possibledesign, a file of a specific format, such as mp3, mp4, wmv, doc, pdf,fly, rm, jpg, or png, may be obtained through filtering according to aspecific file format of a file.

According to a third aspect, an embodiment of the present inventionprovides an apparatus for filtering an object, where the apparatusincludes: a display module, configured to display an object managementinterface, where the object management interface contains objects of atleast two types; a detection module, configured to detect a locationthat is on the object management interface displayed by the displaymodule and that is touched by a user, and a pressure value applied tothe touched location; a determining module, configured to obtain, whenthe detection module detects that the pressure value is greater than apreset threshold, and an object can be identified according to thetouched location, a type of the object as a first type, where the firsttype is one of the at least two types; and a filtering module,configured to obtain, through filtering in the object managementinterface, and present on the display module, all objects of the firsttype.

According to a fourth aspect, an embodiment of the present inventionprovides an apparatus for filtering an object, where the apparatusincludes: a display module, configured to display an object managementinterface, where the object management interface contains objects of atleast two types; a detection module, configured to detect a locationthat is on the object management interface displayed by the displaymodule and that is touched by a user, and a pressure value applied tothe touched location; a determining module, configured to: when thedetection module detects that the pressure value is greater than apreset threshold, and the touched location corresponds to a blank area,determine, according to a preset rule, a threshold interval in which thepressure value is, and determine a first type according to the thresholdinterval, where in the preset rule, a different threshold intervalcorresponds to a different type, the first type is one of the at leasttwo types, and the blank area does not contain any object; and afiltering module, configured to obtain, through filtering in the objectmanagement interface, and present on the display module, all objects ofthe first type.

According to the third aspect or the fourth aspect, in a possibledesign, the object is a message in a dialog box or a file in a folder.

According to the third aspect or the fourth aspect, in a possibledesign, the first type is an image type, an audio type, a video type, ora document type; and correspondingly, the object of the first type is animage, audio, a video, or a document.

According to the third aspect or the fourth aspect, in a possibledesign, the filtering module is specifically configured to: obtain,through filtering, all the objects of the first type from all theobjects contained in the object management interface, and arrange andpresent, on the display module, all the objects of the first type in aforward chronological order.

According to the third aspect or the fourth aspect, in a possibledesign, the filtering module is specifically configured to: obtain,through filtering, all the objects of the first type from all theobjects contained in the object management interface, and arrange andpresent, on the display module, all the objects of the first type in areverse chronological order.

According to the third aspect or the fourth aspect, in a possibledesign, the filtering module is specifically configured to: obtain,through filtering, all the objects of the first type from all theobjects contained in the object management interface, and arrange andpresent, on the display module, all the objects of the first type in aforward chronological order.

According to the third aspect or the fourth aspect, in a possibledesign, a file of a specific format, such as mp3, mp4, wmv, doc, pdf,fly, rm, jpg, or png, may be obtained through filtering according to aspecific file format of a file.

According to a fifth aspect, an embodiment of the present inventionprovides an intelligent terminal, where the terminal includes at least:a display screen, a processor, a memory, and a bus; the display screen,the processor, and the memory are connected to and communicate with eachother by using the bus; and the display screen is configured to receivea user operation, the memory stores a program and an instruction, andthe processor invokes the program and the instruction that are in thememory to perform and implement, according to the user operationreceived by the display screen, any one of the above methods forfiltering an object.

According to technical solutions provided in the embodiments of thepresent invention, the object management interface is displayed; thelocation that is on the object management interface and that is touchedby the user is detected; when the pressure value is greater than thepreset threshold, a first attribute required by the user is determinedaccording to the touched location and the pressure value applied to thetouched location; and all objects of the first attribute are obtainedthrough filtering in the object management interface and presented. Byusing this method, the user can effectively obtain, through filtering inthe object management interface, a presented object of a specific type,purposely locate, among disorderly messages or files, a type in whichthe user is interested, and filter out information of other types. Forexample, in WeChat, only a network red envelope is obtained throughfiltering, and all information other than network red envelopes isfiltered out. For another example, in a group chat, the user obtains,through filtering, messages published by only a person in which the useris interested. All these make perception of the user for the messages orthe files more intuitive and more personalized. In addition, this may beimplemented only by means of a simple force touch, thereby improvinguser experience, and making the user refreshing.

BRIEF DESCRIPTION OF DRAWINGS

To describe the technical solutions in the embodiments of the presentinvention more clearly, the following briefly describes the accompanyingdrawings required for describing the embodiments. Apparently, theaccompanying drawings in the following description show merely someembodiments of the present invention, and a person of ordinary skill inthe art may still derive other drawings from these accompanying drawingswithout creative efforts.

FIG. 1A shows an application interaction interface;

FIG. 1B shows a file list interface;

FIG. 2 is a method for filtering an object according to an embodiment ofthe present invention;

FIG. 3 is Example 1 of a method for filtering an object according to anembodiment of the present invention;

FIG. 4 is Example 2 of a method for filtering an object according to anembodiment of the present invention;

FIG. 5 is Example 3 of a method for filtering an object according to anembodiment of the present invention;

FIG. 6 is another method for filtering an object according to anembodiment of the present invention;

FIG. 7 is Example 4 of a method for selecting an object according to anembodiment of the present invention;

FIG. 8 is Example 5 of a method for selecting an object according to anembodiment of the present invention;

FIG. 9 is a function module structural diagram of an intelligentterminal according to an embodiment of the present invention: and

FIG. 10 is a hardware structural diagram of an intelligent terminalaccording to an embodiment of the present invention.

DESCRIPTION OF EMBODIMENTS

The following clearly describes the technical solutions in theembodiments of the present invention with reference to the accompanyingdrawings in the embodiments of the present invention. Apparently, thedescribed embodiments are merely some but not all of the embodiments ofthe present invention. All other embodiments obtained by a person ofordinary skill in the art based on the embodiments of the presentinvention without creative efforts shall fall within the protectionscope of the present invention. Furthermore, there are details andexplanations of many features in the following embodiments. To avoid toomuch redundancy, the details and the explanations are applicable to asame feature under a same principle.

Referring to FIG. 1A and FIG. 1B, FIG. 1A and FIG. 1B are each a diagramof a common object management application scenario. For example, FIG. 1Ais a common application interaction interface, especially that on whichobjects of various types, such as a network red envelope, an image(including an emoticon), a video, a document, text information, and ashared link, published by multiple users often appear during a groupchat. FIG. 1B is a common file list interface. A file in a folderusually also contains various types, such as music/audio, a video/shortvideo, an image, and a document. These objects are usually distributedwithout order, and it is difficult for a user to rapidly locate, amongthe objects, an object that the user desires. The present invention iscombined with an operation of touching a screen by means of a forcetouch, and then an object type of an object that the user intends toobtain through filtering is identified, so that a user terminal canobtain through filtering and present objects of the object typeaccording to the identified type.

Referring to FIG. 2, FIG. 2 is a method for filtering an objectaccording to an embodiment of the present invention. This method makes auser screen information more flexibly, makes an operation convenient,and improves user experience. This method specifically includes steps101 to 104.

Step 101: Display an object management interface, where the objectmanagement interface contains M objects. The object mentioned in thepresent invention is a generalized concept, including all operationobjects that may be operated in an intelligent terminal. For example,the operation objects are but are not merely limited to an image, audio,a video, a document, a message in an application, a folder, an SMSmessage, an icon, a call record, a contact, and the like. A value of Mis usually greater than 2.

The object management interface mentioned in the present invention isalso a generalized concept, including all interfaces that may displayand operate the object of any type described above. For example, theinterface is a file display interface of a folder, a chat interface of aclient, a call record interface, an interface of a commodity in ashopping cart, a post reply interaction interface in a forum, or asimple message dialog box. Seeing from a level of a computer, any objectmanagement interface actually corresponds to one folder. In a specificimplementation process, a user may enter an object management interfaceby means of some operations in the prior art. Due to a limited screensize of an intelligent terminal, an object management interface is notnecessarily capable of presenting in a screen all objects in the objectmanagement interface. In an existing application, the user may browsemultiple objects in the object management interface by means of a pageflip, dragging, or other means. Usually, in a process of the page flipand the dragging, an outer bezel of the object management interface doesnot change, and only objects in the object management interface move.The intelligent terminal mentioned in this patent includes but is notlimited to a smartphone, a tablet computer, a wearable device, or otherterminal devices, especially mobile terminal devices.

Step 102: Detect a location that is on the object management interfaceand that is touched by a user, and a pressure value applied to thetouched location.

When the user operates on the object management interface, theintelligent terminal detects the location of touching the screen by theuser, and also detects the pressure value of touching the screen. Thesemay be obtained by using a device such as a pressure sensor that isintegrated in the screen of the intelligent terminal.

Step 103: Obtain, when the detected pressure value is greater than apreset threshold, and an object can be identified according to thetouched location, a type of the object as a first type, where the firsttype is one of the at least two types mentioned in step 101.

This is one of innovation points of the present invention, that is, afunction of obtaining an object type by performing triggering by meansof a force touch. In the prior art, the force touch is not distinguishedfrom a normal force touching operation. The preset threshold mentionedin the present invention is greater than a pressure sensing value thatcan trigger a normal operation. For example, when a pressure applied bythe user reaches F1, the user may only implement an operation oftriggering selection by means of touch and hold, or an operation oftriggering a subsequent edit by means of a short tap; and when thepressure applied by the user reaches F2, the intelligent terminal may betriggered to obtain the type of the object, where F2 is greater than F1,and F2 is the preset threshold, and may be set at delivery by a vendorof the intelligent terminal, or be defined by the user.

Furthermore, that the user touches the screen to trigger selecting anobject or executing a subsequent operation, and that the intelligentterminal identifies, by using the location touched by the user, anobjective object to be operated are both existing technologies in thisfield. It should be understood that in the present invention, performinga touching operation on an object refers to touching a display locationthat is in the current screen and that corresponds to the object, andbeing capable of triggering identifying and editing operations on theobject.

Step 104: Obtain, through filtering in the object management interface,and present all objects of the first type.

Furthermore, when the user triggers a function of filtering an object,the intelligent terminal may further display some prompt operations. Forexample, the user is prompted that objects of which type are to beobtained through filtering.

Due to different user operation scenarios, implementations of the abovetechnical solutions are various. The following is to describe the abovemethod in detail by using specific examples. Any technical solution andapplication scenario on which equivalent replacement may be made shouldfall within the protection scope of the present invention.

Example 1

Referring to FIG. 3, FIG. 3 is Example 1 of a method for filtering anobject according to an embodiment of the present invention. A userintends to manage a chat record, and the chat record displayed in acurrent screen is shown in the left of FIG. 3. User chat contentincludes object entries of multiple types and of multiple users, and theobjects include a shared image, link, video, and network red envelope(which are displayed in the figure as examples, and are not of actualsizes), and are further mixed with various text information. Due to thelimited screen, not all the objects in the current chat record are shownin the left of FIG. 3. For ease of description, the objects in thisembodiment of the present invention are numbered correspondingly, onlyintending to conveniently point out which object it is, and not limitingcontent or a form of expression of the object.

An intelligent terminal displays an object management interface of anapplication (a type or a form of the application is not limited) in theleft of FIG. 3. Assuming that a current user (I) intends to only open ared envelope in the object management interface, and pays littleattention to objects of other types, the user may perform a force touchon any red envelope, for example, on a circle on red envelope 1 (aspecific location is not limited, and any function area on which the redenvelope may be selected or operated may be equivalent), so that theintelligent terminal can determine that the user intends to operate thered envelope 1. When the intelligent terminal detects that a pressureapplied by the user to a location that is on the screen and thatcorresponds to the red envelope 1 is greater than a preset threshold,for example, when the preset threshold is 1.5N and the detected pressureis 2N, the intelligent terminal obtains a red envelope type according tothe touch on the red envelope 1, and obtains, through filtering, fromall objects in the object management interface, and presents in theobject management interface, all network red envelopes. As shown in theright of FIG. 3, a red envelope-1, a red envelope-2, . . . , and a redenvelope-7 that can be displayed in the screen are red envelopes thatare not shown in the left of FIG. 3, and a red envelope closer to abottom part of the screen has a later publishing time point. The userthen may tap and open each red envelope one by one, to satisfy apleasure of opening red envelopes in batches, being different from that,in the prior art, a red envelope may be found from disorderly messagesonly by means of multiple page flips, and bringing good experience forthe user. If there are too many red envelopes, the current screen is notnecessarily capable of displaying all the red envelopes after filtering,and the user may view more network red envelopes by means of a page flipor other means.

It should also be noted that, in this embodiment of the presentinvention, a circle in each accompanying drawing is merely arepresentation, and does not limit sizes of a touched location and atouched point during actual operation. Because use operations of theuser are diversified, any operation of which a function may beequivalent to a function effect of an operation in the present inventionshould fall with the technical solutions of the present invention.Details are not described again in the following.

In a specific implementation process of the embodiments of the presentinvention, the object displayed by the object management interface maybe a thumbnail of the object, or a complete image of the object. Sizesof the thumbnails vary greatly due to different settings of a terminalsystem and an application. The thumbnail is not limited in thisapplication. Thumbnails of multiple objects may be tiled, arranged, anddisplayed in one screen. A display method may be similar to verticalarrangement in FIG. 3, that is, arranging and displaying in a forwardchronological order. Usually, objects last published are displayed inthe current screen, and these objects are objects of a same type thatare obtained by the user through filtering. Optionally, the multipleobjects may alternatively be arranged and displayed in a reversechronological order. For example, the objects obtained through filteringare arranged, and an object closer to a top part of the screen has alater publishing time point. Forward or reverse arrangement may be setby default by the intelligent terminal, or be freely set by the user.

It should be understood that, in this embodiment of the presentinvention, if there are fewer objects after filtering, the objects maybe all displayed in the current screen.

In a specific implementation process, the first type in the method isnot merely limited to the red envelope type, and also includes an imagetype, an audio type, a video type, a text message type, a shared linktype, a document type, and the like. Correspondingly, the object is notmerely limited to the red envelope, and also includes an image, audio, avideo, a text message, a shared link, a document, and the like in theobject management interface.

Different from information browsing and viewing in the past, messages inwhich the user is interested may be aggregated from hundreds orthousands of messages provided that the user performs a simple forcetouch on a message in which the user is interested, and, thereby greatlyreducing a quantity of the page flips, and effectively reducingoperation costs of the user. In addition, the user may personalizeselecting an object of a specific type, and more purposely view andbrowse content types in which the user is interested. Adopting theselection method in this example undoubtedly brings great convenience tothe user.

Example 2

Referring to FIG. 4, FIG. 4 is Example 2 of a method for filtering anobject according to an embodiment of the present invention. For ease ofclear description, a user intends to manage a chat record, and a currentchat record is shown in the left of FIG. 4. User chat content includesobjects of multiple types and of multiple users, and the objects includea shared image, link, video, and network red envelope (which aredisplayed in the figure as examples, and are not of actual sizes), andare further mixed with various text information. Due to the limitedscreen, not all the objects in the current chat record are shown in theleft of FIG. 4.

An intelligent terminal displays an object management interface of anapplication (a type or a form of the application is not limited) in theleft of FIG. 4. Assuming that a current user (I) intends to only payattention to, in an object management interface, a message published bya user 2, and pays little attention to a message published by anotheruser, the user may perform a force touch on any contact iconcorresponding to the user 2, for example, on a circle shown in the leftof FIG. 4 (a specific location is not limited, and any function area onwhich the user 2 may be selected or operated may be equivalent), so thatthe intelligent terminal can determine that the user intends to operatethe user 2. When the intelligent terminal detects that a pressureapplied by the user to the contact icon of the user 2 is greater than apreset threshold, for example, when the preset threshold is 2N and thedetected pressure is 3N, the intelligent terminal obtains a user 2attribute according to a touch on the contact icon of the user 2, andobtains through filtering, from all objects in the object managementinterface, and presents in the object management interface, all objectspublished by the user 2. As shown in the right of FIG. 4, a video-1,information-1, information-2, a link-1, a link-2, a red envelope-4, andan image-1 displayed in the current screen are objects that arepublished by the user 2 and that are not shown in the left of FIG. 4,and an object closer to a bottom part of the screen has a laterpublishing time point. If there are too many messages published by theuser 2, the current screen is not necessarily capable of displaying allthe objects after filtering, and the user may view and browse moremessages published by the user 2 by means of a page flip or other means.The user then may browse, in batches, all the objects published by theuser 2, and does not miss an important message published by the user 2,being different from that, in the prior art, a key message published bythe user 2 may be found from disorderly messages only by means ofmultiple page flips, and bringing good experience for the current user.

In a specific implementation process, the object displayed by the objectmanagement interface may be a thumbnail of the object published by theuser 2, or a complete image of the object published by the user 2. Sizesof the thumbnails vary greatly due to different settings of a terminalsystem and an application. The thumbnail is not limited in thisapplication. Thumbnails of multiple objects may be tiled, arranged, anddisplayed in one screen. A display method may be similar to verticalarrangement in the right of FIG. 4, that is, arranging and displaying ina forward chronological order. Usually, objects last published aredisplayed in the current screen, and these objects are objects that arepublished by a same user and that are obtained by the user throughfiltering. Optionally, the multiple objects may alternatively bearranged and displayed in a reverse chronological order. For example,the objects obtained through filtering are arranged, and an objectcloser to a top part of the screen has a later publishing time point.Forward or reverse arrangement may be set by default by the intelligentterminal, or be freely set by the user.

Furthermore, in this embodiment of the present invention, when a touchedlocation is related, the touched location is not limited to a markedlocation in each accompanying drawing, and equivalent replacement may bemade on any location that can trigger a same function based on anoperation of a same principle.

Example 3

Referring to FIG. 5, FIG. 5 is Example 3 of a method for filtering anobject according to an embodiment of the present invention. A userintends to manage files in a folder, and folder content displayed in acurrent screen is shown in the left of FIG. 5. The folder includesobjects of multiple types, and the objects include an image, a video, anetwork, a document, and the like. Due to the limited screen, not allthe files in the folder are shown in FIG. 5.

Assuming that the user only intends to view a music file in the folder,and pays little attention to a file of another type, the user mayperform a force touch on any music file, for example, on a circle onmusic 1 (a specific location is not limited, and any function area onwhich the music 1 may be selected or operated may be equivalent), sothat the intelligent terminal can determine that the user intends tooperate the file, that is, the music 1. When the intelligent terminaldetects that a pressure applied by the user to a location that is on thescreen and that corresponds to the music 1 is greater than a presetthreshold, for example, when the preset threshold is 3N and the detectedpressure is 4N, the intelligent terminal identifies a music typeaccording to a touch operation on the music 1, and obtains throughfiltering, from all objects in the folder, and presents in the objectmanagement interface, all music files. As shown in the right of FIG. 5,music 4 to music 21 are music files that are not shown in the left ofFIG. 5, an ellipsis part represents more music files that are not shown,and the user may view more music files by means of a page flip or othermeans. Furthermore, the music files obtained through filtering may bearranged in a forward chronological order or in a reverse chronologicalorder; and may alternatively be arranged in a forward or a reverse orderaccording to a file name or file size. Which arrangement manner isspecifically adopted may be set by default by the intelligent terminal,or be freely set by the user.

The user then may centralize and view the music files in the folder,being different from that, in the prior art, music in which the user isinterested may be found from disorderly messages only by means ofmultiple page flips, and bringing good experience for the user.

In a specific implementation process, the object displayed by the objectmanagement interface may be a thumbnail of the object, or a completeimage of the object. Sizes of the thumbnails vary greatly due todifferent settings of a terminal system and an application. Thethumbnail is not limited in this application.

In a specific implementation process, a first type in the method is notmerely limited to the music type, and also includes an image type, avideo type, a document type, and the like shown in the figure.Correspondingly, the object is not merely limited to the music, and alsoincludes an image, a video, a document, and the like in the objectmanagement interface.

Different from file browsing and viewing in the past, files in which theuser is interested may be aggregated from disorderly files provided thatthe user performs a simple force touch on a message in which the user isinterested, thereby greatly reducing a quantity of the page flips, andeffectively reducing operation costs of the user. In addition, the usermay personalize selecting a file of a specific type. Adopting theselection method in this example undoubtedly brings great convenience tothe user.

Referring to FIG. 6, FIG. 6 is another method for filtering an objectaccording to an embodiment of the present invention. This method makes auser screen information more flexibly, makes an operation convenient,and improves user experience. This method specifically includes steps201 to 204.

Step 201: Display an object management interface, where the objectmanagement interface contains M objects. The object mentioned in thepresent invention is a generalized concept, including all operationobjects that may be operated in an intelligent terminal. For example,the operation objects are but are not merely limited to an image, audio,a video, a document, a message in an application, a folder, an SMSmessage, an icon, a call record, a contact, and the like. A value of Mis usually greater than 2.

Step 202: Detect a location that is on the object management interfaceand that is touched by a user, and a pressure value applied to thetouched location.

When the user operates on the object management interface, theintelligent terminal detects the location of touching a screen by theuser, and also detects the pressure value of touching the screen. Thesemay be obtained by using a device such as a pressure sensor that isintegrated in the screen of the intelligent terminal.

Step 203: When the detected pressure value is greater than a presetthreshold, and the touched location is a blank area, determine athreshold interval in which the pressure value is, and determine a firsttype according to the threshold interval, where the first type is one ofthe at least two types mentioned in step 201.

This is one of innovation points of the present invention, that is, afunction of obtaining an object type by performing triggering by meansof a force touch. In the prior art, the force touch is not distinguishedfrom a normal force touching operation. The preset threshold mentionedin the present invention is greater than a pressure sensing value thatcan trigger a normal operation. For example, when a pressure applied bythe user reaches F1, the user may only implement an operation oftriggering selection by means of touch and hold, or an operation oftriggering a subsequent edit by means of a short tap; and when thepressure applied by the user reaches F2, the intelligent terminal may betriggered to obtain the type of the object, where F2 is greater than F1,and F2 is the preset threshold, and may be set at delivery by a vendorof the intelligent terminal, or be defined by the user.

It should be understood that the blank area refers to an area that is inthe current screen and that does not correspond to any object. Tappingthe blank area by the user will not trigger any edit operation on anyobject.

When the pressure value applied by the user to the blank area is greaterthan F2, the threshold interval corresponding to the pressure value isdetermined. A correspondence between the threshold interval and theobject type is prestored in the intelligent terminal, and thecorrespondence may be prestored by the intelligent terminal, or presetby the user. For example, an object type corresponding to (F2, F3] is animage, and an object type corresponding to (F3, F4] is a video, where F4is greater than F3, and F3 is greater than F2. A different thresholdinterval corresponds to a different object type.

Step 204: Obtain, through filtering in the object management interface,and present all objects of the first type.

Furthermore, when the user triggers a function of filtering an object,the intelligent terminal may further display some prompt operations. Forexample, the user is prompted that objects of which type are to beobtained through filtering.

Due to different user operation scenarios, implementations of the abovetechnical solutions are various. The following is to describe the abovemethod in detail by using specific examples. Any technical solution andapplication scenario on which equivalent replacement may be made shouldfall within the protection scope of the present invention.

Example 4

Referring to FIG. 7, FIG. 7 is Example 4 of a method for selecting anobject according to an embodiment of the present invention. A userintends to manage a chat record, and the chat record displayed in acurrent screen is shown in the left of FIG. 7. User chat contentincludes object entries of multiple types and of multiple users, and theobjects include a shared image, link, video, and network red envelope(which are displayed in the figure as examples, and are not of actualsizes), and are further mixed with various text information. Due to thelimited screen, not all the objects are shown in the left of FIG. 7.

Assuming that any user (for example, I) participating in a chat intendsto only view a shared link in an object management interface, to searchwhether there is some essence content, and pays little attention to anobject of another type, the user may perform a force touch on any blankarea, for example, on a circle in the left of FIG. 7 (a specificlocation is not limited, as long as it is a blank area). When theintelligent terminal detects that a pressure applied by the user to theblank area is greater than a preset threshold, for example, when thepreset threshold is 2N and the detected pressure is 2.8N, theintelligent terminal determines, according to a threshold interval inwhich 2.8N is, an object type corresponding to the threshold interval,and obtains through filtering, from all objects in the object managementinterface, and presents in the object management interface, all objectsof the object type. For example, a correspondence prestored by theintelligent terminal is: an object type corresponding to a thresholdinterval (2N, 3N] is a network link, an object type corresponding to athreshold interval (3N, 4N] is an image, an object type corresponding toa threshold interval (4N, 5N] is a video, or the like. In thisembodiment of the present invention, a setting of a specific presetthreshold, a setting of a threshold interval, and each thresholdinterval corresponds to which object type may be defined by the user orinitially set by the intelligent terminal. As shown in the right of FIG.7, link 2 to link 11 are shared links that are not shown in the left ofFIG. 7, and the user may view more links that are not shown by means ofa page flip. The user then may view content in any link in batches,being different from that, in the prior art, a shared link may be foundfrom disorderly messages only by means of multiple page flips, andbringing good experience for the user.

It should also be noted that, in this embodiment of the presentinvention, a circle in each accompanying drawing is merely arepresentation, and does not limit sizes of a touched location and atouched point during actual operation. Because use operations of theuser are diversified, any operation of which a function may beequivalent to a function effect of an operation in the present inventionshould fall with the technical solutions of the present invention.Details are not described again in the following.

Optionally, the links obtained through filtering may be arranged anddisplayed in a forward or a reverse chronological order. Forward orreverse arrangement may be set by default by the intelligent terminal,or be freely set by the user.

In a specific implementation process, a first type in the method is notmerely limited to a link type, and also includes an image type, an audiotype, a video type, a text message type, a network red envelope type, adocument type, and the like. Correspondingly, the object is not merelylimited to the link, and also includes an image, audio, a video, a textmessage, a network red envelope, a document, and the like in the objectmanagement interface.

Different from information browsing and viewing in the past, objects inwhich the user is interested may be aggregated provided that the userperforms a simple force touch on the blank area, thereby greatlyreducing a quantity of the page flips, and effectively reducingoperation costs of the user. In addition, the user may personalizeselecting an object of a specific type, and more purposely view andbrowse content in which the user is interested. Adopting the selectionmethod in this example undoubtedly brings great convenience to the user.

Example 5

Referring to FIG. 8, FIG. 8 is Example 5 of a method for selecting anobject according to an embodiment of the present invention. Methods 201to 204 are also applicable to classification and viewing of files in afolder. Specific Example 5 is similar to Example 4, and differs fromExample 4 in that an application scenario is to classify files in a filedisplay interface of a folder. Types of the files include an image type,a music type, a video type, a document type, and the like. When a touchpressure value on a blank area touched by a user is greater than apreset threshold, an object type to be obtained through filtering isdetermined according to a threshold interval in which the touch pressurevalue is. A different threshold interval corresponds to a differentobject type. Because an implementation is similar, a specific example isnot described again. A final effect of Example 5 (in the right of FIG.8) is similar to a final effect of Example 3 (in the right of FIG. 5).

It should be understood that the above examples are merely several ofmultiple embodiments of the present invention. Any application scenarioin which the object type can be determined by means of a force touch, toperform filtering on the objects in the object display interface shouldfall within the protection scope of the present invention. The objecttype may be understood as a common attribute of multiple objects.

Referring to FIG. 9, FIG. 9 is a function module structural diagram ofan intelligent terminal according to an embodiment of the presentinvention. The intelligent terminal 400 may be a wearable device, asmartphone, a tablet computer, or other intelligent terminals,especially mobile intelligent terminals.

The intelligent terminal includes a display module 401, a detectionmodule 402, a determining module 403, and a filtering module 404.Because there are many possible implementations, the following continuesto describe the apparatus by using examples. Any technical solution onwhich equivalent replacement may be made should fall within theprotection scope of the present invention.

Example 6

An intelligent terminal 400, includes:

a display module 401, configured to display an object managementinterface, where the object management interface contains objects of atleast two types, and the display module may be implemented by using adisplay screen of a mobile phone;

a detection module 402, configured to: detect input that is on theobject management interface displayed by the display module 401 and thatis of a user, and detect a location that is on the object managementinterface displayed by the display module and that is touched by theuser, and a pressure value applied to the touched location, where thedetection module 402 may be implemented by using a pressure sensorintegrated in the screen of the mobile phone, and a processor invokes aprogram to perform specific analysis;

a determining module 403, configured to determine, when the detectionmodule 402 detects that the pressure value is greater than a presetthreshold, and an object can be identified according to the touchedlocation, a type of the object as a first type, where the first type isone of the at least two types, and the determining module 403 may beimplemented by invoking a program by the processor; and

a filtering module 404, configured to: obtain, through filtering in theobject management interface, and present on the display module 401, allobjects of the first type, where the filtering module 404 may beimplemented by invoking a program by the processor.

An equivalent concept corresponding to the above method embodiments isnot described herein again. Any equivalent replacement made withoutcreative efforts by a person skilled in the art shall fall within theprotection scope of the present invention, not being differentiated andlimited by a method and an apparatus.

For example, in Example 1 described above, the display module 401displays the object management interface shown in the left of FIG. 3.When the detection module 402 detects that the pressure applied to thered envelope 1 by the user is greater than the preset threshold, thedetermining module 403 obtains the red envelope type, and the filteringmodule 404 obtains through filtering according to the red envelope type,from all the objects in the object management interface, and presents inthe display module 401, all the network red envelopes.

For example, in Example 2 described above, the display module 401displays the object management interface shown in the left of FIG. 4.When the detection module 402 detects that the pressure applied to thecontact icon of the user 2 by the user is greater than the presetthreshold, the determining module 403 determines that the contact typeis the user 2, which may alternatively be understood as a user 2attribute, and the filtering module 404 obtains through filteringaccording to the user 2 attribute, from all the objects in the objectmanagement interface, and presents in the display module 401, all theobjects published by the user 2.

For example, in Example 3 described above, the display module 401displays the object management interface shown in the left of FIG. 5.When the detection module 402 detects that the pressure applied to themusic 1 by the user is greater than the preset threshold, thedetermining module 403 determines the music type, which mayalternatively be understood as that the type of the objects to beobtained through filtering is music, and the filtering module 404obtains through filtering according to the music type, from all theobjects in the object management interface, and presents in the displaymodule 401, all the music files.

All technical solutions that can be included by the above methods 101 to104 may be implemented correspondingly by using the terminal 400.

According to the intelligent terminal provided in the present invention,different from file browsing and viewing in the past, objects of a typein which the user is interested may be aggregated from disorderlyobjects of various types provided that the intelligent terminal 400identifies a force touch on the object performed by the user, therebygreatly reducing a quantity of page flips, and effectively reducingoperation costs of the user. In addition, the user may personalizeselecting an object of a specific type. Adopting the selection method inthis example undoubtedly brings great convenience to the user.

Example 7

An intelligent terminal 400, includes:

a display module 401, configured to display an object managementinterface, where the object management interface contains objects of atleast two types, and the display module may be implemented by using adisplay screen of a mobile phone;

a detection module 402, configured to: detect a location that is on theobject management interface displayed by the display module 401 and thatis touched by a user, and a pressure value applied to the touchedlocation, where the detection module 402 may be implemented by using apressure sensor integrated in the screen of the mobile phone, and aprocessor invokes a program to perform specific analysis;

a determining module 403, configured to: when the detection module 402detects that the pressure value is greater than a preset threshold, andthe touched location corresponds to a blank area, determine, accordingto a preset rule, a threshold interval in which the pressure value is,and determine a first type according to the threshold interval, where inthe preset rule, a different threshold interval corresponds to adifferent type, the first type is one of the at least two types, and theblank area does not contain any object; and the determining module 403may be implemented by invoking a program by the processor, and thepreset rule may be stored in a memory; and a filtering module 404,configured to: obtain, through filtering in the object managementinterface, and present on the display module 401, all objects of thefirst type, where the filtering module 404 may be implemented byinvoking a program by the processor.

An equivalent concept corresponding to the above method embodiments isnot described herein again. Any equivalent replacement made withoutcreative efforts by a person skilled in the art shall fall within theprotection scope of the present invention, not being differentiated andlimited by a method and an apparatus.

For example, in Example 4 described above, the display module 401displays the object management interface shown in the left of FIG. 7.When the detection module 402 detects that the pressure applied to theblank area by the user is greater than the preset threshold, thedetermining module 403 determines the threshold interval correspondingto the pressure value, and determines, according to the prestoredcorrespondence between the threshold interval and the object type, thatthe type of the objects needing to be obtained through filtering is theshared link, and the filtering module 404 obtains through filteringaccording to the shared link type, from all the objects in the objectmanagement interface, and presents in the display module 401, all theshared links.

According to the intelligent terminal provided in the present invention,different from file browsing and viewing in the past, objects of a typein which the user is interested may be aggregated from disorderlyobjects of various types by identifying a force of a force touchprovided that the intelligent terminal 400 identifies the force touch onthe object performed by the user, thereby greatly reducing a quantity ofpage flips, and effectively reducing operation costs of the user. Inaddition, the user may personalize selecting an object of a specifictype. Adopting the selection method in this example undoubtedly bringsgreat convenience to the user.

Referring to FIG. 10, FIG. 10 is a hardware structural diagram of anintelligent terminal according to an embodiment of the presentinvention. The intelligent terminal 500 includes at least one processor501 (for example, CPU), a memory 502, at least one network interface503, at least one communications bus 504, a display 505, and a pressuresensor 506, and the processor 501, the memory 502, the network interface503, the display 505, and the pressure sensor 506 connect to andcommunicate with each other by using the communications bus 504, so asto collaborate to complete each function of the intelligent terminal.

The processor 501 is configured to execute an executable instructionmodule 5021 such as a computer program, an instruction, or other data,stored in the memory 502. The pressure sensor 506 is configured to sensea pressure, and may obtain a value of the pressure. Usually, thepressure sensor 506 is integrated with the display 505. The memory 502may include a high-speed random access memory (RAM), and may furtherinclude a non-volatile memory (non-volatile memory), such as at least aneMMC (Embedded Multi Media Card, embedded multimedia card) memory.Communication and connection between the network device and at leastanother network element are implemented by means of the at least onenetwork interface 503 (which may be wired or wireless), and theInternet, a wide area network, a local area network, a metropolitan areanetwork, or the like may be used.

The executable instruction module 5021 stores a function program of theabove embodiments of the present invention, including but being notlimited to methods corresponding to the above steps 101 to 104 and 201to 204, and methods that may be equivalently replaced. In this way, theprocessor 501, in combination with the display 505 and the pressuresensor 506, performs any method and an equivalent method in the aboveembodiments by invoking the function program.

It should be noted that, to make the description brief, the foregoingmethod embodiments are expressed as a series of actions. However, aperson skilled in the art should appreciate that the present inventionis not limited to the described action sequence, because according tothe present invention, some steps may be performed in other sequences orperformed simultaneously. In addition, a person skilled in the artshould also appreciate that all the embodiments described in thespecification are example embodiments, and the related actions andmodules are not necessarily limited to the present invention.

In the specification, claims, and accompanying drawings of the presentinvention, the terms “first”, “second”, “third”, “fourth”, and so on (ifexistent) are intended to distinguish between similar objects but do notnecessarily indicate a specific order or sequence. It should beunderstood that the data termed in such a way are interchangeable inproper circumstances so that the embodiments of the present inventiondescribed herein can be implemented in orders except the orderillustrated or described herein. Moreover, the terms “include”,“contain” and any other variants mean to cover the non-exclusiveinclusion, for example, a process, method, system, product, or devicethat includes a list of steps or units is not necessarily limited tothose steps or units, but may include other steps or units not expresslylisted or inherent to such a process, method, system, product, ordevice.

Content such as information exchange and an execution process betweenthe modules in the apparatus and the system is based on a same idea asthe method embodiments of the present invention. Therefore, for detailedcontent, refer to descriptions in the method embodiments of the presentinvention, and details are not described herein again.

A person of ordinary skill in the art may understand that all or some ofthe processes of the methods in the embodiments may be implemented by acomputer program instructing related hardware. The program may be storedin a computer readable storage medium. When the program runs, theprocesses of the methods in the embodiments are performed. The foregoingstorage medium may include: a magnetic disk, an optical disc, aread-only memory (Read-Only Memory, ROM), or a random access memory(Random Access Memory, RAM).

Specific examples are used in this specification to describe theprinciple and implementation manners of the present invention. Thedescriptions of the foregoing embodiments are merely intended to helpunderstand the method and idea of the present invention. In addition,with respect to the implementation manners and the application scope,modifications may be made by a person of ordinary skill in the artaccording to the idea of the present invention. Therefore, thisspecification shall not be construed as a limitation on the presentinvention.

What is claimed is:
 1. A computer-implemented method for filtering anobject, wherein the method comprises: displaying an object managementinterface on a display screen, wherein the object management interfacecontains objects of at least two object types, wherein the at least twoobject types include a first object type and a second object type,wherein one or more first objects of the first object type are presentedon the display screen, and wherein one or more second objects of thesecond object type are presented on the display screen; detecting alocation on the displayed object management interface that is touched bya user, wherein the detection includes a detected pressure value appliedto the touched location; determining, when the detected pressure valueis greater than a preset pressure value threshold and when an object canbe identified based on the touched location, a type of the object as thefirst object type, wherein determining the type of the object as thefirst object type comprises: when the detected pressure value is greaterthan the preset pressure value threshold and when the touched locationcorresponds to a blank area within the displayed object managementinterface: determining, according to a preset rule, a pressure valuethreshold interval in which the detected pressure value falls within;and determining the first object type according to the determinedpressure value threshold interval, wherein in the preset rule, adifferent threshold interval corresponds to a different object type, thefirst object type is one of the at least two object types, and the blankarea does not contain any object displayed within the object managementinterface; obtaining, through filtering in the object managementinterface, all objects of the first object type; and in response to theobtaining of all objects of the first object type, presenting theobtained objects of the first object type on the display screen andfiltering out the one or more second objects of the second object type,wherein objects not of the first object type are not presented on thedisplay screen, wherein at least one obtained object of the first objecttype on the display screen is not presented on the display screen whendetecting the location on the displayed object management interface thatis touched by the user, and wherein all the presented objects on thedisplay screen have the same first object type and include the one ormore first objects of the first object type.
 2. The method according toclaim 1, wherein the object comprises a message in a dialog box or afile in a folder.
 3. The method according to claim 2, wherein the firstobject type comprises an image type, an audio type, a video type, a textmessage type, or a document type.
 4. The method according to claim 2,wherein the first object type comprises a network red envelope type or ashared link type.
 5. The method according to claim 2, wherein the firstobject type comprises a contact, and wherein all the objects of thefirst object type are all objects published by the contact.
 6. Themethod according to claim 1, wherein: the obtaining, through filteringin the object management interface, all objects of the first object typecomprises: obtaining, through filtering, all the objects of the firstobject type from all the objects contained in the object managementinterface; and the presenting the obtained objects of the first objecttype on the display screen comprises: arranging and presenting all theobjects of the first object type in a forward chronological order on thedisplay screen.
 7. The method according to claim 1, wherein: theobtaining, through filtering in the object management interface, allobjects of the first object type comprises: obtaining, throughfiltering, all the objects of the first object type from all the objectscontained in the object management interface; and the presenting theobtained objects of the first object type on the display screencomprises: arranging and presenting all the objects of the first objecttype in a reverse chronological order on the display screen.
 8. Anapparatus for filtering an object, wherein the apparatus comprises: atleast one processor; a display screen; and a non-transitorycomputer-readable storage medium coupled to the at least one processorand storing programming instructions for execution by the at least oneprocessor, the programming instructions instruct the at least oneprocessor to: display an object management interface on the displayscreen, wherein the object management interface contains objects of atleast two object types, wherein the at least two object types include afirst object type and a second object type, wherein one or more firstobjects of the first object type are presented on the display screen,and wherein one or more second objects of the second object type arepresented on the display screen; detect a location on the displayedobject management interface that is touched by a user, wherein thedetection includes a detected pressure value applied to the touchedlocation; determine, when the detected pressure value is greater than apreset pressure value threshold and when an object can be identifiedbased on the touched location, a type of the object as the first objecttype, wherein determining the type of the object as the first objecttype comprises: when the detected pressure value is greater than thepreset pressure value threshold and when the touched locationcorresponds to a blank area within the displayed object managementinterface: determining, according to a preset rule, a pressure valuethreshold interval in which the detected pressure value falls within;and determining the first object type according to the determinedpressure value threshold interval, wherein in the preset rule, adifferent threshold interval corresponds to a different object type, thefirst object type is one of the at least two object types, and the blankarea does not contain any object displayed within the object managementinterface; obtain, through filtering in the object management interface,all objects of the first object type; and in response to the obtainingof all objects of the first object type, present the obtained objects ofthe first object type on the display screen and filter out the one ormore second objects of the second object type, wherein objects not ofthe first object type are not presented on the display screen, whereinat least one obtained object of the first object type on the displayscreen is not presented on the display screen when detecting thelocation on the displayed object management interface that is touched bythe user, and wherein all the presented objects on the display screenhave the same first object type and include the one or more firstobjects of the first object type.
 9. The apparatus according to claim 8,wherein the object comprises a message in a dialog box or a file in afolder.
 10. The apparatus according to claim 9, wherein the first objecttype comprises an image type, an audio type, a video type, a textmessage type, a document type, a network red envelope type, or a sharedlink type.
 11. The apparatus according to claim 9, wherein the firstobject type comprises a contact, and wherein all the objects of thefirst object type are all objects published by the contact.
 12. Theapparatus according to claim 8, wherein obtaining, through filtering inthe object management interface, all objects of the first object typecomprises: obtaining, through filtering in the object managementinterface, all the objects of the first object type from all the objectscontained in the object management interface; and arranging andpresenting all the objects of the first object type in a forwardchronological order or in a reverse chronological order.
 13. A terminal,wherein the terminal comprises: a display screen; at least oneprocessor; a memory; and a bus; and wherein the display screen, the atleast one processor, and the memory are connected to and communicatewith each other by using the bus; and wherein the display screen isconfigured to receive a user operation, wherein the memory stores aprogram and an instruction, and wherein the at least one processorinvokes the program and the instruction that are in the memory toperform and implement, according to the user operation received by thedisplay screen, a method comprising: displaying an object managementinterface on a display screen, wherein the object management interfacecontains objects of at least two object types, wherein the at least twoobject types include a first object type and a second object type,wherein one or more first objects of the first object type are presentedon the display screen, and wherein one or more second objects of thesecond object type are presented on the display screen; detecting alocation on the displayed object management interface that is touched bya user, wherein the detection includes a detected pressure value appliedto the touched location; determining, when the detected pressure valueis greater than a preset pressure value threshold and when an object canbe identified based on the touched location, a type of the object asfirst object type, wherein determining the type of the object as thefirst object type comprises: when the detected pressure value is greaterthan the preset pressure value threshold and when the touched locationcorresponds to a blank area within the displayed object managementinterface: determining, according to a preset rule, a pressure valuethreshold interval in which the detected pressure value falls within;and determining the first object type according to the determinedpressure value threshold interval, wherein in the preset rule, adifferent threshold interval corresponds to a different object type, thefirst object type is one of the at least two object types, and the blankarea does not contain any object displayed within the object managementinterface; obtaining, through filtering in the object managementinterface, all objects of the first object type; and in response to theobtaining of all objects of the first object type, presenting theobtained objects of the first object type on the display screen andfiltering out the one or more second objects of the second object type,wherein objects not of the first object type are not presented on thedisplay screen, wherein at least one obtained object of the first objecttype on the display screen is not presented on the display screen whendetecting the location on the displayed object management interface thatis touched by the user, and wherein all the presented objects on thedisplay screen have the same first object type and include the one ormore first objects of the first object type.
 14. The terminal of claim13, wherein the object comprises a message in a dialog box or a file ina folder.
 15. The terminal of claim 14, wherein the first object typecomprises an image type, an audio type, a video type, a text messagetype, a document type, a network red envelope type, or a shared linktype.
 16. The terminal of claim 14, wherein the first object typecomprises a contact, and wherein all the objects of the first objecttype are all objects published by the contact.
 17. The terminal of claim13, wherein obtaining, through filtering in the object managementinterface, all objects of the first object type comprises: obtaining,through filtering in the object management interface, all the objects ofthe first object type from all the objects contained in the objectmanagement interface; and arranging and presenting all the objects ofthe first object type in a forward chronological order or in a reversechronological order.